                <template >
    <div class="weddingItem">
              <div class="main" >
        <div class="lists" >
            <div class="item" v-for="(item,index) in lists" :key="index"  @click="active=!active"> 
                <img :src="item.img" alt="" class="img" >
                <div class="info">
                    <div class="title">
                        <div class="name" >{{ item.name}}</div>
                        <div class="mark">{{ item.mark }}</div>

                    </div>
                    <div class="text">
                       {{ item.text }}
                    </div>
                    <ul class="list" >
                        <li v-for="(items,index) in item.lis" :key="index"> 
                            <div class="li_top"  >{{ items.title }}</div>
                            <div class="li_bom" >{{ items.num}}</div>
                        </li>
                 </ul>
        
                    <div class="price" >
                        <div class="price_l" >
                            ￥<strong>{{ item.price }}</strong>/场
                        </div>
                        <div class="price_r">
                            <div class="text">{{ item.point }}</div>
                        </div>
                    </div>
                </div>
            </div>
        
              
        
         
        </div>

    </div>
            <cover v-if="active">
 
          <template #del>
         
                  <div class="del" @click="goBack"></div>
            
          </template>
                   <template #showImg="parentName">

  
          </template>
          <template #sidebar="parentName">
            <div>
              
            </div>
          </template>
        </cover>
    </div>
</template>
<script>
import cover from "../../components/cover";
export default {
  components: {
    cover
  },
  methods: {
    goBack() {
      this.active = false;
    }
  },
  data() {
    return {
      active: false,
      lists: [
        {
          img: require("../../assets/images/meinv1.png"),
          name: "倩儿",
          mark: "收藏",
          text:
            " 倩儿美业创始人.倩儿美业高级化妆讲师.高级美甲讲师.高级纹绣讲师;苏州电视台特约化妆,亚洲美甲创意大赛总冠军啦啦啦啦",
          lis: [
            {
              title: "新娘造型",
              num: "4套"
            },
            {
              title: "新郎型",
              num: "6套"
            },
            {
              title: "伴郎型",
              num: "23件"
            },
            {
              title: "伴娘型",
              num: "12小时"
            }
          ],

          price: 3680,
          point: "查看详情"
        },
        {
          img: require("../../assets/images/meinv1.png"),
          name: "倩儿",
          mark: "收藏",
          text:
            " 倩儿美业创始人.倩儿美业高级化妆讲师.高级美甲讲师.高级纹绣讲师;苏州电视台特约化妆,亚洲美甲创意大赛总冠军啦啦啦啦",
          lis: [
            {
              title: "新娘造型",
              num: "4套"
            },
            {
              title: "新郎型",
              num: "6套"
            },
            {
              title: "伴郎型",
              num: "23件"
            },
            {
              title: "伴娘造型",
              num: "12小时"
            }
          ],

          price: 3680,
          point: "查看详情"
        },
        {
          img: require("../../assets/images/meinv1.png"),
          name: "倩儿",
          mark: "收藏",
          text:
            " 倩儿美业创始人.倩儿美业高级化妆讲师.高级美甲讲师.高级纹绣讲师;苏州电视台特约化妆,亚洲美甲创意大赛总冠军啦啦啦啦",
          lis: [
            {
              title: "新娘造型",
              num: "4套"
            },
            {
              title: "新郎型",
              num: "6套"
            },
            {
              title: "伴郎型",
              num: "23件"
            },
            {
              title: "伴娘型",
              num: "12小时"
            }
          ],

          price: 3680,
          point: "查看详情"
        }
      ]
    };
  }
};
</script>
<style>
.del {
  width: 50px;
  height: 50px;
  position: absolute;
  left: 35px;
  top: 40px;
  background-color: #121212;
}
.del::before {
  content: "\e62d";
  font-family: "iconfont";
  font-size: 16px;
  color: #fff;
  text-align: center;
  line-height: 50px;
}
.weddingItem {
  background-color: #121212;
}
.main {
  margin: 0 60px;
  height: 100%;
  background-color: #121212;
}

.main .lists {
  margin-top: 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.main .item {
  width: 31%;
  height: 240px;
  background-color: #202020;
  margin-right: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
}

.main .item:nth-child(3n + 3) {
  margin-right: 0;
}

.main .item img {
  padding: 5px 17px 5px 7px;
}

.main .item .info {
  width: 100%;
  /* width: 375px; */
  height: 210px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.main .item .info .title {
  flex-basis: 45px;
  /* height: 45px; */
  margin-top: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.main .item .info .title .name {
  color: #fff;
  font-size: 18px;
}

.main .item .info .title .mark {
  width: 75px;
  height: 30px;
  background-color: #181818;
  text-align: center;
  line-height: 30px;
  border-radius: 25px;
  color: #fff;
}

.main .item .info .title .mark::before {
  content: "\e772";
  font-family: "iconfont";
  padding: 5px 4px 5px 0px;
  font-size: 16px;
}

.main .item .info .text {
  flex-basis: 35px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.main .item .info .list {
  width: 100%;
  flex-basis: 50px;
  display: flex;
  background-color: #2b2b2b;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main .item .info li {
  flex: 1;
  height: 50px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  left: -30%;
  top: 0;
  margin-left: 5px;
}

.main .item .info li::after {
  content: " ";
  position: absolute;
  border-left: 1px #9a9a9a solid;
  top: 25%;
  right: 0;
  height: 50%;
  margin-top: auto;
  margin-bottom: auto;
}
.main .item .info li:last-child::after {
  border: 0;
}
.main .item .info li .li_top {
  color: #969696;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10.8px;
  -webkit-transform-origin-x: 0;
  -webkit-transform: scale(0.9);
}

.main .item .info li .li_bom {
  font-size: 8px;
  -webkit-transform-origin-x: 0;
  -webkit-transform: scale(0.9);
  color: #fefefe;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main .item .info .price {
  flex-basis: 30px;
  display: flex;
  justify-content: space-between;
}

.main .item .info .price .price_l {
  color: #fafafa;
  font-size: 12px;
  line-height: 30px;
}
.main .item .info .price .price_l strong {
  font-size: 16px;
}

.main .item .info .price .price_r {
  width: 100px;
  height: 30px;

  background-color: #e9e8e9;

  border-radius: 15px;

  position: relative;
}
.main .item .info .price .price_r .text {
  font-size: 12px;
  color: #222;
  text-align: center;
  line-height: 30px;
  padding-left: 15px;
}
.main .item .info .price .price_r::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  position: absolute;
  top: 3px;
  left: 5px;
  background: url("../../assets/images/arrow.png") no-repeat;
}
</style>

